package com.hippo.core.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.*;

/**
 * @Description: 通知表
 * @Auther: tangxl
 * @Date: 2021/5/17 11:04
 */

@TableName( "sys_notice" )
@Data
@Schema(description = "通知表")
public class SysNotice  implements Serializable{
private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	@Schema(description = "主键ID")
	private Integer id;
	/**
	 * 通告标题
	 */
	@TableField( "title" )
	@Schema(description = "通告标题",example = "通告标题")
	private String title;
	/**
	 * 通告内容
	 */
	@TableField( "notice" )
	@Schema(description = "通告内容",example = "通告内容")
	private String notice;
	/**
	 * 通告截止时间
	 */
	@TableField( "cutoff_time" )
	@Schema(description = "通告截止时间",example = "2021-05-17 11:04:00")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime cutoffTime;
	/**
	 * 创建时间
	 */
	@TableField( value = "create_time",fill= FieldFill.INSERT)// 插入数据时，自动填充
	@Schema(description = "创建时间",example = "2021-05-17 11:04:00")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTime;
	/**
	 * 创建人ID
	 */
	@TableField( "create_user_id" )
	@Schema(description = "创建人ID",example = "1")
	private Integer createUserId;
	/**
	 * 状态
	 */
	@TableField( value = "status" ,fill = FieldFill.INSERT)
	@Schema(description = "状态",example = "1")
	private Integer status;
}
